import request from '@/utils/request'
import {encryptedData} from '@/utils/encrypt'
import {loginRSA, tokenName} from '@/config'

export async function getList(data) {
  console.log(data);
  return request({
    url: `/productType/list?currentPage=${data.currentPage}&pageSize=${data.pageSize}&productTypeId=${data.productTypeId}&begin=${data.begin}&end=${data.end}`,
    method: 'get',
  })
}

export async function getById(id) {
  return request({
    url: `/productType/${id}`,
    method: 'get',
  })
}

export async function setTop(data) {
  return request({
    url: `/information/top`,
    method: 'put',
    data: data
  })
}

